﻿using GameCommon.Components;

using Microsoft.Xna.Framework.Graphics;

namespace GameGraphics.Components
{
    public class GameModeIcon : Texture
    {
        public GameModeIcon(string id, Texture2D texture)
            : base(id, texture)
        {
        }

        public GameModeIcon(string id, Texture2D texture, GameComponent parent)
            : base(id, texture, parent)
        {
        }

        public bool IsSelected { get; private set; }

        public void Select()
        {
            this.IsSelected = true;
            this.Color = Microsoft.Xna.Framework.Color.Red;
        }

        public void Deselect()
        {
            this.IsSelected = false;
            this.Color = Microsoft.Xna.Framework.Color.White;
        }
    }
}